//
//  LiveUser.m

//
//  Created by ozm on 2017/11/21.
//  Copyright © 2017年 ozm. All rights reserved.
//

#import "LiveUser.h"

@implementation LiveUser

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
    
    if ([key isEqualToString:@"friend"]) {
        self.friends = value;
    }
}

- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

+ (instancetype)modelWithDic:(NSDictionary *)dic {
    return [[self alloc] initWithDic:dic];
}

@end
